interface MoreType {
  seo_title?: string;
  seo_keywords?: string;
  thumbnail?: string;
  template?: string;
  form_id?: number;
}
interface DataType {
  id: number;
  update_time: number;
  published_time: string;
  post_title: string;
  thumbnail: string;
  is_top: number;
  recommended: number;
  post_hits: number;
  post_status: number;
  post_type: number;
  category_id: number;
  category_name: string;
  url: string;
}

interface AddDataType {
  id?: number;
  is_top?: number;
  recommended?: number;
  post_hits?: number;
  published_time?: string;
  post_title: string;
  post_keywords?: string[];
  post_excerpt?: string;
  post_source?: string;
  thumbnail?: string;
  post_content?: string;
  more: MoreType;
  post_alias: string;
  fields?: any[];
}

interface UpdataType {
  user_login: string; // 用户名
  user_email: string; // 邮箱
  user_pass: string; // 密码
  role_ids: object; // 角色ids
  id?: number;
}

interface StateType {
  form: AddDataType;
  pageThemeFiles: any[];
}

export type { AddDataType, DataType, MoreType, StateType, UpdataType };
